using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
using ZR.Model.Dto;
using ZR.Model.Models;
using MiniExcelLibs.Attributes;
using SqlSugar;

namespace ZR.Model.Dto
{
    /// <summary>
    /// 认证记录表查询对象
    /// </summary>
    public class VeriRecordQueryDto : PagerInfo 
    {
    }

    /// <summary>
    /// 认证记录表输入输出对象
    /// </summary>
    public class VeriRecordDto
    {
        [Required(ErrorMessage = "主键不能为空")]
        [ExcelColumn(Name = "主键")]
        [JsonConverter(typeof(ValueToStringConverter))]
        public long Id { get; set; }

        [ExcelColumn(Name = "认证日期", Format = "yyyy-MM-dd HH:mm:ss")]
        public DateTime? CreateTime { get; set; }

        [ExcelColumn(Name = "手机号")]
        public string Phone { get; set; }

        [ExcelColumn(Name = "姓名")]
        public string Name { get; set; }

        [ExcelColumn(Name = "身份证号")]
        public string IdNumber { get; set; }

        [ExcelColumn(Name = "百度接口返回的json")]
        public string Remark { get; set; }

        [ExcelColumn(Name = "认证方式：0-2要素，1-人脸，2-3要素")]
        public int VeriType { get; set; }

        [ExcelColumn(Name = "认证状态：0-错误；1-正确")]
        public bool State { get; set; }

        [ExcelColumn(Name = "头像地址")]
        public string Avatar { get; set; }
        [ExcelColumn(Name = "微信openid")]
        public string OpenId { get; set; }
        [ExcelColumn(Name = "来源方式")]
        public string FromDevice { get; set; }
        [ExcelColumn(Name = "签名")]
        public string Sign { get; set; }
        /// <summary>
        /// 唯一id
        /// </summary>
        public string _id { get; set; }
    }

}